#include <iostream>

using namespace std;

template <typename T>
T add(T val1, T val2)
{
    return val1 + val2;
}

int main()
{
    int num1 = 100, num2 = 200;
    int sum = add<int>(num1, num2);
    cout << sum << endl;
    float v1 = 12.3, v2 = 3.5;
    float v3 = add<float>(v1, v2);
    cout << v3 << endl;
    return 0;
}